package Test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class Test2 {
    @Autowired
    private Test1 test1;

    public void sayHello() {
        System.out.println("hello");
        test1.sayHi();
    }
}
